from flask import Flask, render_template
import config
from exit import db
from models import *
from buleprints.auth import auth_dp
from buleprints.admin import admin_bp
from buleprints.client import client_bp
from buleprints.admincard import admincard_dp
from buleprints.admindeposit import admindeposit_dp
from buleprints.admintrade import admintrade_bp

from flask_migrate import Migrate, migrate

app = Flask(__name__)

app.config.from_object(config)

db.init_app(app)


migrate=Migrate(app,db)

app.register_blueprint(auth_dp)
app.register_blueprint(admin_bp)

app.register_blueprint(admincard_dp)

app.register_blueprint(admindeposit_dp)

app.register_blueprint(admintrade_bp)

app.register_blueprint(client_bp)


@app.route('/')
def index():

    return render_template('login.html')



if __name__ == '__main__':
    app.run(debug=True)
